/*
 * @Descripttion: 特许经营市场变更
 * @version:
 * @Author: lehaixia
 * @Date: 2023-05-03 10:06:03
 * @LastEditors: lehaixia
 * @LastEditTime: 2023-05-06 13:53:03
 */
import request from '@/plugins/request'
import { IResponseData } from '@/types/request-base'
import { json2FormData } from '@/utils'

/**
 * 特许经营市场变更查询
 * @param {object} data 参数
 */
export function getList({ page, rows, sort, order, filtersRaw, sortersRaw, paramsRaw }: any) {
  const params = {
    page,
    rows,
    sort: sort || 'changeTime',
    order: order || 'desc',
    pageFlag: true,
    onlyCountFlag: false,
    filtersRaw: JSON.stringify(filtersRaw),
    sortersRaw: JSON.stringify(sortersRaw),
    paramsRaw: JSON.stringify(paramsRaw)
  }
  const data = json2FormData(params)
  return request<IResponseData>({
    url: '/app/v1/ctmFranchiseMarketChange/page',
    method: 'post',
    data
  })
}
